divided_lists divide(dish full_list[], int dish_num)
{
    divided_lists ret;
    sort_dish_type(full_list, dish_num);
    char *type = full_list[0].type;
    int i = 0;
    int j = 0;
    int k = 0;
    for (; i < dish_num; i++, k++)
    {
        if (!strcmp(full_list[i].type, type))
        {
            type = full_list[i].type;
            ret.type[j] = type;
            ret.list_num[j] = k;
            j++;
            k = 0;
        }
        ret.lists[j][k] = full_list[i];
    }
    ret.list_num[j] = k;
    ret.type_num = j + 1;
    return ret;
}